package org.raycloud.commons;

/**
 * Created by Administrator on 2014/4/1.
 * Time: 14:36
 */
public class count2rank {

    public static String getRank(int count) {
        if (4 <= count && count <= 10) return "一心";
        else if (11 <= count && count <= 40) return "两心";
        else if (41 <= count && count <= 90) return "三心";
        else if (91 <= count && count <= 150) return "四心";
        else if (151 <= count && count <= 250) return "五心";
        else if (251 <= count && count <= 500) return "一钻";
        else if (501 <= count && count <= 1000) return "二钻";
        else if (1001 <= count && count <= 2000) return "三钻";
        else if (2001 <= count && count <= 5000) return "四钻";
        else if (5001 <= count && count <= 10000) return "五钻";
        else if (10001 <= count && count <= 20000) return "一冠";
        else if (20001 <= count && count <= 50000) return "二冠";
        else if (50001 <= count && count <= 100000) return "三冠";
        else if (100001 <= count && count <= 200000) return "四冠";
        else if (200001 <= count && count <= 500000) return "五冠";
        else if (500001 <= count && count <= 1000000) return "一皇冠";
        else if (1000001 <= count && count <= 2000000) return "二皇冠";
        else if (2000001 <= count && count <= 5000000) return "三皇冠";
        else if (5000001 <= count && count <= 10000000) return "四皇冠";
        else if (10000001 <= count) return "五皇冠";
        return "NoFound";
    }

    ;

}
